function [ s ] = calc_struct_field_mean( struct_cell )

field_names = fieldnames(struct_cell{1});
n_field_name = length(field_names);
for i_name = 1:n_field_name
    eval(['s.', field_names{i_name}, ' = 0;']);
end

n_cell = size(struct_cell, 1)*size(struct_cell, 2);
for i_cell = 1:n_cell
    s = struct_add(s, struct_cell{i_cell});
end

for i_name = 1:n_field_name
    eval(['s.', field_names{i_name}, ' = ', 's.', field_names{i_name}, ...
        '/n_cell;']);
end

end
